package com.gscitysfy.cus.drain.modules.warning.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gscitysfy.cloudfrmwk.assistant.domain.Result;
import com.gscitysfy.cus.drain.modules.warning.entity.DrainWaringSystem;
import com.gscitysfy.cus.drain.modules.warning.entity.DrainWaringWaterloggingSection;
import com.gscitysfy.cus.drain.modules.warning.mapper.DrainWaringSystemMapper;
import com.gscitysfy.cus.drain.modules.warning.mapper.DrainWaringWaterloggingSectionMapper;
import com.gscitysfy.cus.drain.modules.warning.service.IDrainWaringWaterloggingSectionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhangqiang
 * @since 2022-10-21 17:32:58d
 */
@Service
public class DrainWaringWaterloggingSectionServiceImpl extends ServiceImpl<DrainWaringWaterloggingSectionMapper, DrainWaringWaterloggingSection> implements IDrainWaringWaterloggingSectionService {
    @Autowired
    DrainWaringWaterloggingSectionMapper drainWaringWaterloggingSectionMapper;
    @Override
    public Result<Object> getByPage(Page<DrainWaringWaterloggingSection> page, DrainWaringWaterloggingSection drainWaringWaterloggingSection) {
        IPage<DrainWaringWaterloggingSection> drainWaringSystemList =drainWaringWaterloggingSectionMapper.getPageList(page,drainWaringWaterloggingSection);
        return Result.content(drainWaringSystemList);
    }

    @Override
    public Result<Object> getList(DrainWaringWaterloggingSection drainWaringWaterloggingSection) {
        return Result.content(drainWaringWaterloggingSectionMapper.getList(drainWaringWaterloggingSection));
    }
}
